# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-frame-simple
_pkgname=Net-Frame-Simple
pkgver=1.09
pkgrel=9
pkgdesc='Frame crafting made easy.'
arch=('any')
url='http://search.cpan.org/~gomor/Net-Frame-Simple/lib/Net/Frame/Simple.pm'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/$_pkgname-$pkgver.tar.gz")
sha512sums=('a4346516dadd690bdc7e095b8c15f823ff91ccc37c42910791c8969094bfee52f74208b17a91f3a67d7c58f4a29c239bd3fe8df206474329d8aa1cee53e1431b')

prepare() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_pkgname-$pkgver"

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

